package src.com.doit.Demo11;

public class Company {
    public void show (Employee e)
    {
        System.out.println("员工的工号:"+e.getId());
        System.out.println("员工的姓名:"+e.getName());
        if(e instanceof Manager)
            System.out.println("员工的职位:经理");
        if(e instanceof Programmer)
            System.out.println("员工的职位:程序员");
        e.calculateWage();
    }
}
